home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
top_that_pizza.swf
/
scripts
/
DefineButton2_630
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2011-09-19
|
1KB
|
39 lines
on(release){
scoresend = new LoadVars();
_root.name = namefield.text;
_root.email = emailfield.text;
scoresend.name = _root.name;
scoresend.email = _root.email;
scoresend.score = _root.score;
scoresend.level = _root.level;
if(tickbox._currentframe == 1)
{
scoresend.optin = 0;
}
else
{
scoresend.optin = 1;
}
scoreget = new LoadVars();
scoreget.onLoad = function()
{
if(scoreget.highscore_status == "true")
{
_root.comboboxs._visible = false;
_parent.gotoAndStop("highscores");
}
};
scoresend.topping1 = _root.comboboxs.items1.getValue();
scoresend.topping2 = _root.comboboxs.items2.getValue();
scoresend.topping3 = _root.comboboxs.items3.getValue();
this.tickbox = tickbox._currentframe - 1;
if(_root.name != "" && _root.email != "" && scoresend.topping1 != "" && scoresend.topping2 != "" && scoresend.topping3 != "")
{
scoresend.sendAndLoad("highscore_save.php",scoreget,"POST");
var trackvar = new LoadVars();
trackvar.section = "submits score";
var rtrackvar = new LoadVars();
trackvar.sendAndLoad("tracking.php",rtrackvar,"POST");
}
}